package com.project.bookstore.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @TableName stock
 */
@TableName(value = "stock")
@Accessors(chain = true)
@Data
public class Stock implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 库存数量
     */
    private Integer PCS;
    /**
     * 进货单号
     */
    private String documentNo;
    /**
     * bookId
     */
    private Long bookId;

    /**
     * 进货数量
     */
    private Integer count;

    /**
     * 供应商
     */
    private String supplier;

    /**
     * 供应商业务员
     */
    private String salesman;

    /**
     * 成本价
     */
    private BigDecimal costPrice;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    /**
     * 修改时间
     */
    private LocalDateTime modified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}